namespace MedicalReportAssistant.Models
{
    public class CorrectionResult
    {
        public string OriginalText { get; set; } = string.Empty;
        public string CorrectedText { get; set; } = string.Empty;
        public List<CorrectionItem> Corrections { get; set; } = new();
        public string Summary { get; set; } = string.Empty;
        public bool Success { get; set; }
        public string ErrorMessage { get; set; } = string.Empty;
    }

    public class CorrectionItem
    {
        public string Original { get; set; } = string.Empty;
        public string Corrected { get; set; } = string.Empty;
        public string Reason { get; set; } = string.Empty;
        public CorrectionType Type { get; set; }
    }

    public enum CorrectionType
    {
        Terminology,    // 术语规范
        Grammar,        // 语法错误
        Logic,          // 逻辑矛盾
        Format,         // 格式规范
        Expression      // 表达准确性
    }
} 